package com.hua.customviews.base

import android.app.Activity
import android.content.Intent
import android.os.Bundle
import androidx.activity.ComponentActivity

open class BaseActivity : ComponentActivity() {

    fun <T : Activity> toNextActivity(activity: Class<T>, bundle: Bundle = Bundle()) {
        startActivity(Intent(this, activity).apply {
            action = ""
            putExtras(bundle)
        })
    }
}